import Cookies from 'js-cookie'

/**
 * 获取cookie
 * @param name
 * @returns {*}
 */
export const getCookie = (name) => {
  return Cookies.get(name)
}
/**
 * 设置cookie
 * @param name
 * @param value
 * @param expires
 */
export const setCookie = (name, value, expires = 7) => {
  Cookies.set(name, value, { expires })
}
/**
 * 删除cookie
 * @param name
 */
export const removeCookie = (name) => {
  Cookies.remove(name)
}
